<?php
include(WEIXIN_ROBOT_PLUGIN_DIR.'admin/pages/weixin-messages-stats.php');
include(WEIXIN_ROBOT_PLUGIN_DIR.'admin/includes/class-weixin-reply-setting.php');
include(WEIXIN_ROBOT_PLUGIN_DIR.'admin/includes/class-weixin-menu.php');

add_filter('wpjam_weixin_menu_stats_list_table', function(){
	$style = '
	th.column-name{width:200px;}
	th.column-position{width:70px;}
	th.column-type{width:84px;}
	th.column-count{width:70px;}
	th.column-percent{width:70px;}
	.tablenav{display:none;}
	';

	return [
		'title'				=> (weixin_get_type() >= 3)?'默认菜单':'自定义菜单',
		'singular'			=> 'weixin-button',
		'plural'			=> 'weixin-buttons',
		'primary_column'	=> 'name',
		'primary_key'		=> 'pos',
		'model'				=> 'WEIXIN_MenuButton',
		'style'				=> $style,
	];
});
